package cn.sdormitory.classHygiene.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @className: ClassHygiene
 * @author: Alex
 * @date: 2024/12/12
 **/
@Data
@TableName("class_hygiene")
public class AppClassHygiene implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private Long id;
	
	private Long classId;
	
	@JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN, timezone = "GMT+8")
	@DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
	private Date checkDate;
	
	private Integer timeSlot;
	
	private String createBy;
	
	private String notes;
	
	private String photos;
	
	private Integer grade;
	
	private Date createTime;
	
	private Date modifyTime;
	
	@TableField(exist = false)
	private List<ClassHygieneItem> items;
}
